<?php
class Core extends Controller {
	function __construct()
	{
		parent::Controller();
		if($this -> session -> userdata('user_id') === FALSE)
			redirect("login");
	}
	
	function index()
	{
		$this -> load -> model('user_model');
		$data = array();
		$data += $this -> user_model -> getUserData($this -> session -> userdata('user_id'));
		$data['page_title'] = "xxxProductions69";
		$this -> load -> view('firstpage', $data);
	}
	
}
